using System; 
using System.Collections.Generic; 
using System.Text; 
using FluentNHibernate.Mapping;
using Water.Model; 

namespace Water.Data.Repositories.Mappings {
    
    
    public class FireHydrantMap : ClassMap<FireHydrant> {
        
        public FireHydrantMap() {
			Table("Tbt_FireHydrant");
			LazyLoad();
            Id(x => x.MRNO).GeneratedBy.Assigned().Column("MRNO");
			Map(x => x.EpcNo).Column("EpcNO").Not.Nullable();
            References<Valve>(x => x.Ve, "EpcNO").PropertyRef(e => e.EpcNO).ReadOnly();
			Map(x => x.FireHydrantState).Column("FireHydrant").Not.Nullable();
			Map(x => x.InspectionEmp).Column("InspectionEmp").Not.Nullable();
			Map(x => x.InspectionDt).Column("InspectionDt").Not.Nullable();
			Map(x => x.ProcessQk).Column("ProcessQk");
			Map(x => x.CreateDt).Column("CreateDt").ReadOnly();
        }
    }
}
